<?php

namespace Home\Service;

use Home\DAO\TaobaoTradesDAO;
//use Home\DAO\BankDAO;
//use Home\DAO\BizConfigDAO;

/**
 * 银行账户Service
 *
 * @author 李静波
 */
class TobaoService extends PSIBaseExService
{

    public function saveorder(&$params)
    {
    //    if ($this->isNotOnline()) {
    //      return $this->emptyResult(); //判断当前用户是否被禁用
    //    }
        $dao = new TaobaoTradesDAO($this->db());
        return $dao->addorder($params);
    }
    public function tbbillList($params)
    {
        if ($this->isNotOnline()) {     //判断当前用户是否被禁用
            return $this->emptyResult();
        }

        $params["loginUserId"] = $this->getLoginUserId();

        $dao = new TaobaoTradesDAO($this->db());
        return $dao->tbbillList($params);
    }
    public function updateorder(&$params)
    {
        //    if ($this->isNotOnline()) {
        //      return $this->emptyResult(); //判断当前用户是否被禁用
        //    }
        $dao = new TaobaoTradesDAO($this->db());
        return $dao->updateorder($params);
    }
}
//D:\www\erp\web\Application\Home\DAO\TaobaoTradesDAO.class.php